package com.auto.api.properties;

import org.springframework.boot.context.properties.ConfigurationProperties;

/**
 * 配置文件
 */
@ConfigurationProperties(prefix = AutoApiProperties.AUTO_API_PREFIX)
public class AutoApiProperties {

    public static final String AUTO_API_PREFIX = "auto.api";

    /**
     * 是否开启自动API
     */
    public static final String OPEN_MAPPING = AUTO_API_PREFIX + ".mapping";

    /**
     * 是否开启自动API
     */
    public static final String OPEN_MOCK = AUTO_API_PREFIX + ".mock";

    private Boolean mapping = false;

    /**
     * 是否mock数据返回结果
     */
    private Boolean mock = false;

    public void setMapping(Boolean mapping) {
        this.mapping = mapping;
    }

    public Boolean getMapping() {
        return mapping;
    }

    public void setMock(Boolean mock) {
        this.mock = mock;
    }

    public Boolean getMock() {
        return mock;
    }
}
